package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the BORROWED_RECORD database table.
 * 
 */
@Entity
@Table(name="BORROWED_RECORD")
@NamedQuery(name="BorrowedRecord.findAll", query="SELECT b FROM BorrowedRecord b")
public class BorrowedRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="BORROWED_RECORD_BOREID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BORROWED_RECORD_BOREID_GENERATOR")
	@Column(name="BORE_ID")
	private long boreId;

	@Column(name="BORE_DEADLINE")
	private BigDecimal boreDeadline;

	@Column(name="BORE_PURPOSE")
	private String borePurpose;

	@Column(name="BORE_RETURNDATE")
	private Timestamp boreReturndate;

	@Column(name="BORE_STARTDATE")
	private Timestamp boreStartdate;

	@Column(name="BORE_STATE")
	private BigDecimal boreState;

	//bi-directional many-to-one association to CertificateRegistration
	@ManyToOne
	@JoinColumn(name="CERTIFICATE_ID")
	private CertificateRegistration certificateRegistration;

	public BorrowedRecord() {
	}

	public long getBoreId() {
		return this.boreId;
	}

	public void setBoreId(long boreId) {
		this.boreId = boreId;
	}

	public BigDecimal getBoreDeadline() {
		return this.boreDeadline;
	}

	public void setBoreDeadline(BigDecimal boreDeadline) {
		this.boreDeadline = boreDeadline;
	}

	public String getBorePurpose() {
		return this.borePurpose;
	}

	public void setBorePurpose(String borePurpose) {
		this.borePurpose = borePurpose;
	}

	public Timestamp getBoreReturndate() {
		return this.boreReturndate;
	}

	public void setBoreReturndate(Timestamp boreReturndate) {
		this.boreReturndate = boreReturndate;
	}

	public Timestamp getBoreStartdate() {
		return this.boreStartdate;
	}

	public void setBoreStartdate(Timestamp boreStartdate) {
		this.boreStartdate = boreStartdate;
	}

	public BigDecimal getBoreState() {
		return this.boreState;
	}

	public void setBoreState(BigDecimal boreState) {
		this.boreState = boreState;
	}

	public CertificateRegistration getCertificateRegistration() {
		return this.certificateRegistration;
	}

	public void setCertificateRegistration(CertificateRegistration certificateRegistration) {
		this.certificateRegistration = certificateRegistration;
	}

}